Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs mention --tracing.otlp.http=true flag but it is not accepted #10721

Closed
2 tasks done
geigerzaehler opened this issue May 15, 2024 · 4 comments
Closed
2 tasks done

Comments

@geigerzaehler
Copy link

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

I ran Traefik with the --tracing.otlp.http=true flag as suggested in the docs and it failed to start.

docker run --rm -p 8080:80 traefik:v3.0 --log.level=DEBUG --tracing.otlp.http=true

In fact, I initially came across this bug when I used the helm chart which can add this flag. I get a similar issue when using --tracing.otlp.grpc=true.

What did you see instead?

Traefik immediately exited with the following error

{"level":"error","error":"command traefik error: failed to decode configuration from flags: http cannot be a standalone element (type *types.OtelHTTP)","time":"2024-05-15T09:58:49Z","message":"Command error"}

What version of Traefik are you using?

Version: 3.0.0
Codename: beaufort
Go version: go1.22.2
Built: 2024-04-29T14:25:59Z
OS/Arch: linux/amd64

What is your environment & configuration?

no config

If applicable, please paste the log output in DEBUG level

No response

geigerzaehler added a commit to geigerzaehler/traefik-helm-chart that referenced this issue May 15, 2024
The options `--tracing.otlp.http=true` and `--tracing.oltp.grpc=true`
[are not supported][1] (albeit documented). Before this patch, setting the
values `tracing.otlp.http.enabled` or `tracing.otlp.grpc.enabled` to
`true` resulted in the prod crashing.

[1]: traefik/traefik#10721
@ldez
Copy link
Member

ldez commented May 15, 2024

Hello,

the option depends on another option that is required: https://doc.traefik.io/traefik/observability/metrics/opentelemetry/#endpoint

@geigerzaehler
Copy link
Author

When I add the option you linked to (--metrics.otlp.http.endpoint=http://localhost:4318/v1/metrics) I get the same error.

In any case, my issue wasn’t that I did not get OpenTemeletry to work but that the documentation mentions options that are not accepted by traefik which led to a downstream bug in the helm chart.

@nmengin
Copy link
Contributor

nmengin commented May 16, 2024

Hello @geigerzaehler,

Thank you for reaching out.
Indeed, there is an issue in the configuration management we will fix.

@traefiker
Copy link
Contributor

Closed by #10729.

@traefiker traefiker added this to the 3.0 milestone May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants